package com.gome.util;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationGroup;
import com.intellij.notification.Notifications;
import com.intellij.openapi.ui.MessageType;

/**
 * @author wangaoyun
 * @date 2021/4/13
 */
public class NoticeUtil {

    private static final String DISPLAY_ID = "custom_notification_id";

    public static void noticeInfo(String infoContent) {
        NotificationGroup notificationGroup = new NotificationGroup(DISPLAY_ID, NotificationDisplayType.BALLOON, false);
        Notification notification = notificationGroup.createNotification(infoContent, MessageType.INFO);
        Notifications.Bus.notify(notification);
    }
}
